<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right"><{if $pager.type == 1}><{link ctl="packet/packet:so" load="mini:搜索内容" width="mini:500" class="button" title="搜索"}>
            <{link ctl="packet/packet:create" class="button" title="添加"}><{/if}>
            </td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr><th class="w-50">ID</th><th>标题</th><th class="w-50">用户ID</th><th class="w-50">类型</th><th class="w-50">分类</th><th class="w-50">价格</th><th class="w-50">最低消费</th><th class="w-50">时间</th><th class="w-100">最迟消费时间</th><th>兑奖码</th><th class="w-100">过期时间</th><th class="w-50">是否使用</th><th>描述</th><th class="w-100">创建时间</th></tr>
    <{foreach $items as $item}>
 <tr>  <td><label><input type="checkbox" value="<{$item.id}>" name="id[]" CK="PRI"/><{$item.id}><label></td>
<td><{$item.title}></td>
<td><{$item.uid}></td>
<td><{if $item.type == 1}>平台红包<{else}>店铺红包<{/if}></td>
<td><{if $item.cate_id == 0}>平台通用<{else}><{$cate[$item.cate_id].title}><{/if}></td>
<td><{$item.price}></td>
<td><{$item.man}></td>
<td>领取后<{$item.time}>天</td>
<td><{$item.last_time|format:'Y-m-d'}></td>
<td><{$item.code}></td>
<td><{$item.ltime|format:'Y-m-d'}></td>
<td><{if $item.is_use == 1}>未使用<{elseif $item.is_use == 0}>未领取<{else}>已使用<{/if}></td>
<td><{$item.desc}></td>
<td><{$item.dateline|format}></td>
</tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left"></td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>